package com.itheima.controller;

import com.itheima.pojo.Cart;
import com.itheima.server.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CartController {
    @Autowired
    private CartService cartService;
    public List<Cart> List(){
        return cartService.List();
    }
}
